<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/9/30
 * Time: 11:20
 */
namespace App\Constant;

class RedisKeyConstant
{
    const WECHAT_ACCESS_TOKEN   =   'wechat_access_token';      //微信通用凭证    string

    const USER_SEARCH_HISTORY   =   'user_search_history_';     //用户搜索记录    list

    const USER_COLLECT_CART     =   'user_collect_cart_';       //用户购物车记录   set

    /**
     * 直播常量键名
     */

    const REDIS_DATABASE_NUMBER    =    6;                          //switch redis database number

    const ROOM_CURRENT_NAME        =    'current_room_name';        //current_room_name

    /**
     *  All Room Data
     */
    const ROOM_ADMIN_PREFIX        =    'room_admin_';              //room administrator        (redis set)

    const ROOM_VISIT_PREFIX        =    'room_visit_';              //room visitors             (redis set)

    const ROOM_WATCH_PREFIX        =    'room_watch_';              //room watcher              (redis set)

    const ROOM_THUMB_UP_PREFIX     =    'room_thumb_up_';           //room thumb up             (redis hash)

    const ROOM_GOOD_LIST_PREFIX    =    'room_good_list_';          //room good list            (redis set)

    const ROOM_GOOD_SORT_PREFIX    =    'room_good_sort_';          //room good sort            (redis list)

    const ROOM_COUPON_LIST_PREFIX  =    'room_coupon_list_';        //room coupon list          (redis set)

    const ROOM_COUPON_SORT_PREFIX  =    'room_coupon_sort_';        //room coupon sort          (redis list)

    const ROOM_BLOCK_USER_PREFIX   =    'room_block_user_';         //room block user           (redis set)

    const ROOM_RECOMMEND_PREFIX    =    'room_goods_recommend_';    //room goods recommend      (redis string)

    const SHARE_FETCH_PREFIX       =    'room_share_';               //room share coupon        (redis set)


    /**
     * All User Data
     */
    const USER_DETAIL_INFO         =    'user_detail_info';           //user detail info        (redis hash)

    const USER_WATCH_TIME_PREFIX   =    'user_watch_time_';           //user watch time         (redis hash)

    const USER_WATCH_LINE_PREFIX   =    'user_watch_line_';           //user watch line         (redis list)

    const USER_FOCUS_PREFIX        =    'user_focus_';                //user focus              (redis set)

    const COUPON_FETCH_PREFIX      =    'user_coupon_fetch_';         //user fetch coupon       (redis set)


    /**
     * All Anchor Data
     */
    const ANCHOR_FOLLOWERS_PREFIX  =    'anchor_follower_';           //anchor follower         (redis set)

    const ROOM_WATCH_PEOPLE_PREFIX =    'room_watch_people_';         //total watch people      (redis set)

    const ROOM_WATCH_NUMBER_PREFIX =    'room_watch_number_';         //total watch numbers     (redis set)

    const ROOM_VISIT_ONLINE_PREFIX =    'room_visit_online_';         //online watch people     (redis set)

    const ROOM_CLICK_GOODS_PREFIX  =    'room_click_goods_';          //room click goods        (redis hash)

    const ROOM_ADD_CART_PREFIX     =    'room_add_cart_';             //room add cart           (redis hash)

}
